package com.draw.cli.webclient;

import java.net.MalformedURLException;

import javax.xml.ws.Service;
import javax.xml.ws.WebServiceException;

import com.draw.webinterface.VectorInterface;

public class VectorClient extends Client {
	private static VectorInterface vectorInterface = null;

	public static VectorInterface getInstance() throws MalformedURLException,
			WebServiceException {
		if (vectorInterface == null || Client.isConfigChanged()) {
			Service service = getService("VectorService");
			vectorInterface = service.getPort(VectorInterface.class);
		}
		return vectorInterface;
	}
}
